package com.kexuexiong.common.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 文件表
 * </p>
 *
 * @author XY
 * @since 2021-12-01
 */
public class File implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
      @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * oss-bucket
     */
    private String ossBucket;

    /**
     * oss获取文件file key
     */
    private String fileKey;

    /**
     * 创建时间
     */
    private LocalDateTime createDate;

    /**
     * 是否删除 0 否 1 是
     */
    private Boolean isDel;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getOssBucket() {
        return ossBucket;
    }

    public void setOssBucket(String ossBucket) {
        this.ossBucket = ossBucket;
    }

    public String getFileKey() {
        return fileKey;
    }

    public void setFileKey(String fileKey) {
        this.fileKey = fileKey;
    }

    public LocalDateTime getCreateDate() {
        return createDate;
    }

    public void setCreateDate(LocalDateTime createDate) {
        this.createDate = createDate;
    }

    public Boolean getIsDel() {
        return isDel;
    }

    public void setIsDel(Boolean isDel) {
        this.isDel = isDel;
    }

    @Override
    public String toString() {
        return "File{" +
        "id=" + id +
        ", ossBucket=" + ossBucket +
        ", fileKey=" + fileKey +
        ", createDate=" + createDate +
        ", isDel=" + isDel +
        "}";
    }
}
